//
//  SEGOldPGCListViewLayout.h
//  SEGPlatform
//
//  Created by SEGI on 2020/12/3.
//

#import <Foundation/Foundation.h>
#import "SEGOldPGCListViewModel.h"


typedef NS_ENUM(NSUInteger, SEGEnumOldPGCListViewType) {
    SEGEnumOldPGCListViewType_OnlyWords = 5, /*PGC默认纯文本*/
    SEGEnumOldPGCListViewType_SingleSmallPic = 2, /*PGC单小图*/
    SEGEnumOldPGCListViewType_SingleBigPic = 3, /*PGC单大图*/
    SEGEnumOldPGCListViewType_DoublePic = 4, /*一对图  单小图代替*/
    SEGEnumOldPGCListViewType_SmallTPic = 1 /*PGC小三图*/
};


@interface SEGOldPGCListViewLayout : NSObject
@property (nonatomic, assign,readonly) CGFloat totalHeight;//控件总高度
@property (nonatomic, assign,readonly) SEGEnumOldPGCListViewType type;//控件类型
@property (nonatomic, strong,readonly)SEGOldPGCListViewModel *data;
- (instancetype)initWithData:(SEGOldPGCListViewModel *)data type:(SEGEnumOldPGCListViewType)type;
-(void)segOldPGCListViewLayout;

@property (nonatomic, assign) CGFloat contentLabelHeight;//contentLabel 高度
@property (nonatomic, assign) CGFloat contentLabelWidth;//contentLabel 宽度
@property (nonatomic, strong) SEGTextLayout *contentLabelTextLayout;//contentLabel 富文本布局

@property (nonatomic, assign) CGFloat praiseLabelHeight;//praiseLabel 高度
@property (nonatomic, strong) SEGTextLayout *praiseLabelTextLayout;//praiseLabel 富文本布局

@property (nonatomic, assign) CGFloat commentLabelHeight;//commentLabel 高度
@property (nonatomic, strong) SEGTextLayout *commentLabelTextLayout;//commentLabel 富文本布局

@property (nonatomic, assign) CGFloat timeDescLabelHeight;//timeDescLabel 高度
@property (nonatomic, strong) SEGTextLayout *timeDescLabelTextLayout;//timeDescLabel 富文本布局

@end
